> * Method: `withInputPreProcessor(preProcessorFunction)`
> * Argument Type: `HfInputPreProcessor`
> * Usage:

```tsx
const myInputPreProcessor: HfInputPreProcessor = (
    input: string,
    adapterOptions: Readonly<HfAdapterOptions>,
) => {
    // Pre-process the user input
    return inputReadyToSend;
};

const adapter = createChatAdapter()
    .withInputPreProcessor(myInputPreProcessor);
```

`NLUX` provides a default input pre-processor that can be used with LLAMA2 model on Hugging Face:

```tsx
import {llama2InputPreProcessor} from '@nlux/hf';

const adapter = createChatAdapter()
    .withInputPreProcessor(llama2InputPreProcessor);
```
